package com.lufei4.chestnut.network;

import io.reactivex.Flowable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface APIService {

    @FormUrlEncoded
    @POST("user/login")
    Flowable<BaseObjectBean<LoginBean>> login(@Field("username") String username
            , @Field("password") String password);

    @GET("wxarticle/chapters/json")
    Flowable<BaseObjectBean<WxarticleSBean>> wxarticle();
}
